package com.sjsm.sjsmscenerecord.holder;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.sjsm.sjsmscenerecord.R;

import java.util.Map;

/**
 * Created by hasee on 2017/8/21.
 */

public class MyProjectHolder extends BaseListHolder<Map<String,Object>> {

    private TextView mName;
    private TextView mTime;

    public MyProjectHolder(Context context) {
        super(context);
    }

    @Override
    public View initHolderView() {
        View view = inflater.inflate(R.layout.project_item, null, false);
        mName = (TextView) view.findViewById(R.id.tv_item_name);
        mTime = (TextView) view.findViewById(R.id.tv_item_time);
        return view;
    }

    @Override
    public void bindData(Map<String, Object> data) {
      mName.setText(data.get("name").toString());
      mTime.setText(data.get("time").toString());
    }
}
